//
//  MainViewController.h
//  HengHuaSupervision
//
//  Created by XD-XY on 3/20/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//

#import "XDBaseViewController.h"
#import "XDSegmentedView.h"
#import "XDSearchBar.h"
#import "InitDataRequset.h"

@interface MainViewController : XDBaseViewController<XDSengmentedViewDelegate,UITableViewDataSource,UITableViewDelegate,UISearchBarDelegate,InitDataRequestDelegate>
{
    XDSegmentedView * segmentedView; //段落选择器
    UITableView * headerTabelView;   //表头
    XDSearchBar * searchView;  //搜索框
    int chooseIndex;  //“已贴”,“全部”,“未贴”的选择index
    InitDataRequset * initRequset; //数据初始化请求
    InitDataRequset * reflashRequest; //增量下载请求
    BOOL isSearch;  //是否是搜索的
    
    UIView * waitingView;
}

@property (nonatomic,strong)UITableView * homePageTableview;
@property (nonatomic,strong)NSMutableArray * dataArray;    //全部
@property (nonatomic,strong)NSMutableArray * noStickArray; //未贴
@property (nonatomic,strong)NSMutableArray * hadStickArray; //已贴
@property (nonatomic,strong)NSMutableArray * searchArray; //搜索的数组

@property (nonatomic,strong)NSMutableDictionary * mDictionary;

-(void)initHomePageDatas:(InitDataRequset *)reRuequset;

@end
